// 诉状
Vue.component('ht-form-image', {
    name:'ht-form-image',
    template: `
        <div>
                <el-form-item :label="label">
                    <el-input type="text" v-model="value" :placeholder="label" style="width: 70%"></el-input>
                    <el-button @click="imageOpen('editData','avatar')" size="small" type="primary">选择</el-button>
                </el-form-item>
                <el-form-item v-if="value">
                    <img :src="value" class="ht-image100" @click="showImg(value)">
                </el-form-item>
        </div>
    `,
    props: {
        label:'',
        value:'',
    },
    data() {
        return {
            editData:{}
        }
    },
    created() {
        this.editData.image = this.value
    },
    methods: {
    },
    watch: {
        value(v) {
            this.$set(this.editData,'image',v)
            this.$emit('input',v)
            console.log("vvvvvvimage",v)
        },
    }
})